import request from '@/utils/request'

export default {
	shopQuery: (data, isLoading = true) => { //门店列表
		return request({
			url: '/system/mall/shop/query',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},
	shopDelete: (data, isLoading = true) => { //门店删除
		return request({
			url: '/system/mall/shop/delete',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},
	shopSaveUpd: (data, isLoading = true) => { //门店添加
		return request({
			url: '/system/mall/shop/saveUpd',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},
	checkRepeatBossPhone: (data, isLoading = true) => { //校验老板手机号是否重复
		return request({
			url: '/system/mall/shop/checkRepeatBossPhone',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},
	userQuery: (data, isLoading = true) => { //门店管理员列表
		return request({
			url: '/system/mall/shop/user/query',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},
	userDelete: (data, isLoading = true) => { //删除门店管理员
		return request({
			url: '/system/mall/shop/user/delete',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},
	addUser: (data, isLoading = true) => { //添加门店管理员
		return request({
			url: '/system/mall/shop/user/addUser',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},
	checkRepeatPhone: (data, isLoading = true) => { //校验门店管理员手机号是否重复
		return request({
			url: '/system/mall/shop/user/checkRepeatPhone',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},
	resetpass: (data, isLoading = true) => { //重置门店管理员密码
		return request({
			url: '/system/mall/shop/user/resetpass',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},
	getWuyeList: (data, isLoading = true) => { //获取物业下拉框数据
		return request({
			url: '/system/wuyeinfo/getWuyeList',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},
	loadAllXiaoQu: (data, isLoading = true) => { //获取小区下拉框数据
		return request({
			url: '/system/xiaoqu/loadAllXiaoQu',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},
	getShopData: (data, isLoading = true) => { //获取门店下拉框数据
		return request({
			url: '/system/mall/shop/getShopData',
			method: 'post',
			params: data,
			loading: isLoading,
		})
	},

}
